﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.StopZero.CApStopZeroAdditionalInfoCachingValidator
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Collections.Generic;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.StopZero;

public abstract class CApStopZeroAdditionalInfoCachingValidator : CApStopZeroCachingValidator
{
  private Dictionary<ITxObject, object> _info;

  public CApStopZeroAdditionalInfoCachingValidator(string nullObjectError)
    : base(nullObjectError)
  {
    this._info = new Dictionary<ITxObject, object>();
  }

  protected object this[ITxObject obj]
  {
    get => obj != null && this._info.ContainsKey(obj) ? this._info[obj] : (object) null;
    set
    {
      if (value == null)
        return;
      if (this._info.ContainsKey(obj))
        this._info[obj] = value;
      else
        this._info.Add(obj, value);
    }
  }
}
